package com.ejkj.pdf;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @ClassName PdfProperties
 * @Description TODO
 * @Author skies
 * @Date 2021/2/7 18:03
 * @Version 1.0
 */
@ConfigurationProperties(prefix = "java.pdf")
public class PdfProperties {
	//pdf模板
	private String template;

	// pdf填充参数
	private Map<String, String> params;

	/// 图片填充参数  图片参数为base64的字符串
	private Map<String, String> imgs;

	// 设置默认字体：宋体
	private String font = "fonts/simsun.ttf";

	// 字体大小
	private float fontSize = 15f;

	// 数字签名 begin
	// 缺少一个要素，不会签名
	// 签章图片
	private String signImg;

	// 证书
	private String key;

	// 证书密码
	private String password;
	// 数字签名 end


	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public Map<String, String> getParams() {
		return params;
	}

	public void setParams(Map<String, String> params) {
		this.params = params;
	}

	public Map<String, String> getImgs() {
		return imgs;
	}

	public void setImgs(Map<String, String> imgs) {
		this.imgs = imgs;
	}

	public String getFont() {
		return font;
	}

	public void setFont(String font) {
		this.font = font;
	}

	public float getFontSize() {
		return fontSize;
	}

	public void setFontSize(float fontSize) {
		this.fontSize = fontSize;
	}

	public String getSignImg() {
		return signImg;
	}

	public void setSignImg(String signImg) {
		this.signImg = signImg;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
